sha1Digest
Type
function
Summary
Computes a SHA-1 cryptographic message digest.
Syntax
the sha1Digest of <message>
sha1Digest(<message>)
Description
Compute a message digest of message using the SHA-1 cryptographic hash function.
warning
Serious flaws have been found in the SHA-1 hash algorithm that make it unsuitable to use for security-critical purposes. Unless you need backwards compatibility with existing systems, use one of the other algorithms available with the messageDigest function
Parameters
Name | Type | Description |
---|---|---|
message | data | A binary data string. |
Examples
get the sha1Digest of "LiveCode"
put textEncode("Message to verify", "UTF-8") into tMessage
get sha1Digest(tMessage)
Related
function: md5Digest, messageDigest
Compatibility and Support
Introduced
LiveCode 4.6
OS
mac
windows
linux
Platforms
desktop
server